package com.flca.frw.model
{
	import com.flca.frw.util.PrintUtil;
	
	public class ExceptionInfo 
	{
		public var logId:String;
		public var message:String;
		public var details:Array;
		
		public function ExceptionInfo(aLogId:String, aMessage:String = "", aDetails:Array = null):void
		{
			logId = aLogId;
			message = aMessage;
			
			if (aDetails != null)
			{
				details = aDetails;
			}
			else
			{
				details = new Array();
			}
		}
		
		public function toString():String
		{
			var result:String;
			
			result = "{";
			result += "logId=" + logId + ";";
			result += "message=" + message+ ";";
			result += "details=" + PrintUtil.arrayAsString(details);
			result += "}";
			
			return result;
		}
	}
}